package com.wing.device.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.device.model.entity.DeviceAttributeCategory;
import com.wing.device.model.request.DeviceAttributeCategoryForm;
import com.wing.device.model.response.DeviceAttributeCategoryVO;
import com.wing.product.model.request.ProductAttributeCategoryForm;

import java.util.List;
import java.util.Map;

/**
 * 设备属性分类-Service
 *
 * @author
 */
public interface DeviceAttributeCategoryService extends IService<DeviceAttributeCategory> {

    /**
     * 添加
     *
     * @param deviceAttributeCategoryForm
     * @return
     */
    int add(DeviceAttributeCategoryForm deviceAttributeCategoryForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<DeviceAttributeCategoryVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<DeviceAttributeCategoryVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    DeviceAttributeCategoryVO get4appById(Long id);


    int del(Long id);

    int enable(Long id);

    int disable(Long id);

    int update(DeviceAttributeCategoryForm deviceAttributeCategoryForm);

    JsonResult getTreeData(Integer type);
}
